package com.slipper.system.api.role.service;

import com.slipper.common.bo.Result;
import com.slipper.common.feign.ServiceClient;
import com.slipper.common.annotation.FeignRequestMapping;
import com.slipper.system.api.role.bo.RoleBO;

import java.util.List;

import org.springframework.web.bind.annotation.RequestBody;

/**
 * 角色信息表
 * 
 * @date 2019-10-03 14:09:46
 */
@ServiceClient
public interface IRoleSv {
    @FeignRequestMapping("/role/queryBy")
    Result<RoleBO> queryBy(@RequestBody RoleBO bo);

    @FeignRequestMapping("/role/queryPage")
    Result<List<RoleBO>> queryPage(@RequestBody RoleBO bo);

    @FeignRequestMapping("/role/save")
    Result<?> save(@RequestBody RoleBO bo);

    @FeignRequestMapping("/role/delete")
    Result<?> delete(@RequestBody RoleBO bo);

    @FeignRequestMapping("/role/isSuperAdmin")
    Result<Boolean> isSuperAdmin(@RequestBody String employeeId);

    @FeignRequestMapping("/role/queryList")
    Result<List<RoleBO>> queryList(@RequestBody RoleBO roleBO);

    @FeignRequestMapping("/role/queryPower")
    Result<List<String>> queryPower(@RequestBody RoleBO bo);

    @FeignRequestMapping("/role/savePower")
    Result<?> savePower(@RequestBody RoleBO bo);
}
